import request from '@/utils/request'

export function getDeviceList(data) {
  return request({
    url: '/device/find-all-device',
    method: 'post',
    data
  })
}

export function getDeviceCount(data) {
  return request({
    url: '/device/find-device-count',
    method: 'post',
    data
  })
}

export function deleteDevice(data) {
  return request({
    url: '/device/delete-device',
    method: 'post',
    data
  })
}

export function addDevice(data) {
  return request({
    url: '/device/add-device',
    method: 'post',
    data
  })
}

export function updateDevice(data) {
  return request({
    url: '/device/update-device',
    method: 'post',
    data
  })
}

export function setDeviceStatus(data) {
  return request({
    url: '/device/set-device-status',
    method: 'post',
    data
  })
}
